#pragma once
#include "cplaybuttongroupwidget.h"
#include "vlckits.h"
#include <QWidget>
#include <QLabel>
#include <QPushButton>

class CBottomCtrlBar : public QWidget
{
    Q_OBJECT

public:
    CBottomCtrlBar(QWidget* p = nullptr);
    ~CBottomCtrlBar();

    void showTimeLabel(bool isShow);
    void setCurPlayTime(const qint64& curMs);
    void setTotalTime(const qint64& totalMs);

    CPlayButtonGroupWidget* getcplaybtn(){  return m_pPlayButtonGroupWidget;    }

private slots:

signals:
    void sig_play();
    void sig_stop();
    void sig_fullScreen();

    void sig_list();//播放列表

private:
    QString formatTimeMs(const qint64& timeMs);

private:
    void resizeEvent(QResizeEvent* event) override;

private:
    QLabel* m_pCurPlayTimeLabel = nullptr;
    QLabel* m_pTotalTimeLabel = nullptr;
    CPlayButtonGroupWidget* m_pPlayButtonGroupWidget = nullptr;
    QPushButton* m_pToolBoxButton = nullptr;
    QPushButton* m_pEffectButton = nullptr;
    QPushButton* m_pFullscreenButton = nullptr;

};
